using DG.Tweening;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;

public class LoginUI : UIBase
{
    private void Awake()
    {
        Register("StartButton").onClick = OnStartGameBtn;
        Register("SettinfButton").onClick = OnSettingBtn;
        Register("ExitButton").onClick = OnExitBtn;
    }

    private void OnExitBtn(GameObject arg1, PointerEventData arg2)
    {
            Application.Quit();
    }

    private void OnSettingBtn(GameObject arg1, PointerEventData arg2)
    {
        Close();
        UIManager.Instance.ShowUI<SettingUI>("SettingUI", "UI");
    }

    private void OnStartGameBtn(GameObject obj, PointerEventData pData)
    {
        Close();
        UIManager.Instance.ShowUI<SelectUI>("SelectUI2", "UI");
    }
}
